﻿using System;
using System.Collections.Generic;
 
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Fjaspx.UI.Web.configuration.system
{
    public partial class iframe : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Response.CacheControl = "no-cache";
            }
            string sh = Request.QueryString["heights"];
            select_iframe.InnerHtml = select_iframelist(sh);
        }
        string select_iframelist(string sh)
        {
            string liststr = "";
            string srcstr = "";
            string rq = Request.QueryString["FileType"];
            string arrrq = rq.Split('|')[0];
            switch (arrrq)
            {
                case "newsclass":
                    srcstr = "../../configuration/system/selectArea.aspx";
                    break;
                case "Productclass":
                    srcstr = "../../configuration/system/selectProCategories.aspx";
                    break;
                case "batchArea":
                    srcstr = "../../configuration/system/batchSelectArea.aspx";
                    break;
                default:
                    break;
            }
            liststr += "<iframe src=\"" + srcstr + "\" frameborder=\"0\" id=\"select_main\" scrolling=\"yes\" name=\"select_main\" width=\"100%\" height=\"" + sh + "px\" />";
            return liststr;
        }
    }
}